package ooday01;

public class Car {
    //成员变量
    String brand;
    String color;
    double price;
    //构造方法
    Car(){

   }
     Car(String brand,String color,double price){
       this.brand=brand;
       this.color=color;
       this.price=price;
    }
    //方法
    void  carStart(){
       System.out.println(brand+"牌子的"+color+"颜色的"+price+"块钱的车子启动了");
    }
    void  carRun(){
        System.out.println(brand+"牌子的"+color+"颜色的"+price+"块钱的车子开始跑了");
    }
    void  carStop(){
        System.out.println(brand+"牌子的"+color+"颜色的"+price+"块钱的车子停止了");
    }

}
